home *** CD-ROM | disk | FTP | other *** search
- global gDVMovieID, gDVMovieName, gDVMovieLoc
-
- on MAC_QT_Init
- openXLib("QTMovie")
- return 1
- end
-
- on MAC_QT_Done
- closeXLib("QTMovie")
- end
-
- on MAC_QT_Use aFName
- set gDVMovieName to aFName & ".mov"
- end
-
- on MAC_QT_Play aFrom, aTo
- if gDVMovieName <> EMPTY then
- QTMovie("OpenMovie", "Direct", gDVMovieName, gDVMovieLoc, "Invisible")
- set gDVMovieID to the result
- set gDVMovieName to EMPTY
- end if
- if aTo = -1 then
- QTMovie("Direct", gDVMovieID, "Set", "SegmentPlay", "false")
- else
- QTMovie("Direct", gDVMovieID, "Set", "SegmentStart", string(aFrom))
- QTMovie("Direct", gDVMovieID, "Set", "SegmentEnd", string(aTo))
- QTMovie("Direct", gDVMovieID, "Set", "SegmentPlay", "true")
- end if
- QTMovie("Direct", gDVMovieID, "Show")
- QTMovie("Direct", gDVMovieID, "Play")
- DVIdle()
- end
-
- on MAC_QT_Pause
- QTMovie("Direct", gDVMovieID, "Pause")
- end
-
- on MAC_QT_PauseP
- QTMovie("Direct", gDVMovieID, "Get", "rate")
- return value(the result) = 0
- end
-
- on MAC_QT_Resume
- QTMovie("Direct", gDVMovieID, "Play")
- end
-
- on MAC_QT_SetPos aPos
- QTMovie("Direct", gDVMovieID, "Set", "CurrTime", string(aPos))
- end
-
- on MAC_QT_GetPos
- QTMovie("Direct", gDVMovieID, "Get", "CurrTime")
- return the result
- end
-
- on MAC_QT_PlayP
- QTMovie("Direct", gDVMovieID, "Get", "rate")
- return value(the result) <> 0
- end
-
- on MAC_QT_SetPlayArea aX, aY, aW, aH
- set gDVMovieLoc to string(aX) & "," & string(aY)
- end
-
- on MAC_QT_FullScreen aFlag
- nothing()
- end
-
- on MAC_QT_FullScreenP
- return 0
- end
-
- on MAC_QT_FrameRate
- QTMovie("Direct", gDVMovieID, "Get", "MovieScale")
- return the result
- end
-
- on MAC_QT_Close
- QTMovie("Direct", gDVMovieID, "Dispose")
- end
-
- on MAC_QT_Idle
- QTMovie("Direct", gDVMovieID, "Idle")
- end
-
- on MAC_QT_Stop
- DVPause()
- end
-
- on MAC_QT_StopP
- return DVPauseP()
- end
-
- on MAC_QT_Show
- QTMovie("Direct", gDVMovieID, "Set", "Visible", "true")
- end
-
- on MAC_QT_Hide
- QTMovie("Direct", gDVMovieID, "Set", "Visible", "false")
- end
-